package com.example.edu.Mapper;

import com.example.edu.Entity.Tag;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface Tag_DocMapper {
    void addMany(@Param("document_id") int document_id, @Param("tags") List<Tag> tags);

    @Delete("delete from tag_doc where document_id = #{document_id}")
    void delete(@Param("document_id") int document_id);
}
